package com.fled.itsmbigscreen.mapper;

import com.fled.itsmbigscreen.dto.SelectByExampleGroupMinuteDto;
import com.fled.itsmbigscreen.pojo.PduSensor;
import com.fled.itsmbigscreen.pojo.PduSensorExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface PduSensorMapper {
    int deleteByExample(PduSensorExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PduSensor record);

    int insertSelective(PduSensor record);

    List<PduSensor> selectByExample(PduSensorExample example);
    List<SelectByExampleGroupMinuteDto> selectByExampleGroupMinute(@Param("begin") Date begin, @Param("end") Date end, @Param("pduIds")  List<Integer> pduIds);

    PduSensor selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PduSensor record);

    int updateByPrimaryKey(PduSensor record);

    List<PduSensor> selectLast(@Param("pduIds")List<Integer> pduIds,@Param("begin") Date begin, @Param("end") Date end);
}